#include <iostream>
#include<memory>
#include<string>
#include"EpollServer.hpp"
using namespace std;
int main(int argc,char *argv[])
{
    if(argc!=2)
    {
        cout<<"usge:"<<argv[0]<<"port\n"<<endl;
        return 1;
    }
      uint16_t localport = std::stoi(argv[1]);
     std::unique_ptr<Epoll_sever> svr = std::make_unique<Epoll_sever>(localport);
     svr->Initserver();
     svr->Loop();
    return  0;
}